home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4804 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  52 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: chang.unx.sas.com!walker
  3. From: walker@chang.unx.sas.com (Doug Walker)
  4. Subject: Re: Shared Lib problems
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <DnsqB3.98u@unx.sas.com>
  7. Date: Tue, 5 Mar 1996 13:18:39 GMT
  8. X-Nntp-Posting-Host: chang.unx.sas.com
  9. References: <65641284%agos001@pn.itnet.it> <DnJEs1.Lr0@unx.sas.com> <65641307%agos001@pn.itnet.it>
  10. Organization: SAS Institute Inc.
  11.  
  12. In article <65641307%agos001@pn.itnet.it>,
  13. Stefano Agostinelli <agos001@pn.itnet.it> wrote:
  14. >> to see more information.  Your exact link command line (whether with SC or
  15. >> SLINK) would help, as would the error or warning message(s) that you are
  16. >> getting.
  17. >
  18. > Command I use is:
  19. > "slink ... lib:amiga.lib lib:sc.lib ..."
  20. > or
  21. > "sc ... link lib=small.lib ...".
  22.  
  23. You should use either
  24.  
  25.    slink ... lib lib:sc.lib lib:amiga.lib ...
  26.    
  27. or
  28.  
  29.    sc ... link ...   
  30.  
  31. (do not specify any libraries on the sc command line.)
  32.  
  33. The documentation clearly states that if you use SLINK to link, you should 
  34. link with sc.lib BEFORE amiga.lib if you are using functions from sc.lib.
  35. See page 15 of the 6.50 Library Reference Manual.  The order of the 
  36. libraries does make a BIG difference.
  37.  
  38. If you use SC to link, SC automatically adds the correct SAS/C provided
  39. libraries and amiga.lib to your link line.  The only link libraries you 
  40. should specify are ones that you create.  I suggest using SC LINK to link
  41. instead of using the SLINK command directly, since there is less chance
  42. of getting the options wrong.
  43.  
  44. -- 
  45.   *****                    / walker@unx.sas.com
  46.  *|_o_o|\\     Doug Walker<  BIX, Portal: djwalker
  47.  *|. o.| ||                \ AOL: weissblau
  48.   | o  |//     
  49.   ====== 
  50. Any opinions expressed are mine, not those of SAS Institute, Inc.
  51.  
  52.